<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>数字反转</title>
	</head>
	<body>
		<script>
			var a=prompt("输入一个整数：")
			for (var i=a.length;i>0;i--) {
				document.write(a.charAt(i));
			}
		</script>
	</body>
</html>
